<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<title>欢迎使用</title>
		<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link rel="stylesheet" href="../../css/mui.min.css">
		<link rel="stylesheet" href="../../css/iconfont.css" />
		<link rel="stylesheet" href="../../css/icons-extra.css" />
		<script src="../../libs/jquery-1.11.2.min.js"></script>
		<script src="../../js/mui.min.js"></script>
		<script src="../../js/app.js"></script>
		<script src="js/index.js"></script>
	</head>

	<body>
		<ul class="mui-table-view mui-grid-view mui-grid-9">
			<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
				<a href="todo/todomain.html" id="todo">
					<span class="mui-icon mui-icon mui-icon-compose"><span class="mui-badge mui-badge-red">1</span></span>
					<div class="mui-media-body">待办事项</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
				<a href="cashflow/cashflow.html">
					<span class="mui-icon mui-icon mui-icon-list"></span>
					<div class="mui-media-body">出入账</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
				<a href="impdate/impdate.html">
					<span class="mui-icon mui-icon-extra mui-icon-extra-calendar"></span>
					<div class="mui-media-body">重要日期</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
				<a href="todo/todomain.html" id="todo">
					<span class="mui-icon mui-icon mui-icon-compose"><span class="mui-badge mui-badge-red">1</span></span>
					<div class="mui-media-body">提醒</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
				<a href="note/note.html">
					<span class="mui-icon mui-icon-extra mui-icon-extra-calendar"></span>
					<div class="mui-media-body">便签</div>
				</a>
			</li>
			<li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-3">
				<a href="../setting/setting.html">
					<span class="mui-icon mui-icon mui-icon-list"></span>
					<div class="mui-media-body">设置</div>
				</a>
			</li>
		</ul>
		
		<div class="mui-content">
			<div class="mui-content-padded">
				<div class="chart" id="barChart"></div>
			</div>
		</div>
		<script>
			mui.init();

			mui.plusReady(function() {
				setInterval("push()", 60000 * 60); //毫秒
			});

			function push() {
				var options = {
					cover: false
				};
				var myDate = new Date();
				var str = myDate.toLocaleTimeString();
				str += ": 弹出了一条消息";
				plus.push.createMessage(str, "LocalMSG", options);
			}
			document.getElementById("todo").addEventListener('tap', function() {
				 //window.parent.location.reload();
				//window.parent.location.href = "todo/todomain.html";
				window.parent.window.location.href="todo/todomain.html";
//				mui.openWindow({
//					url: 'todo/todomain.html',
//  				id: 'todo/todomain.html',
//  				show: {
//					        autoShow: true, //页面loaded事件发生后自动显示，默认为true
//					    }
//				});
			});
		</script>
		<script src="../js/common.js"></script>
	</body>

</html>